package com.github.leecho.ssc.captcha.repository;

/**
 * @author LIQIU
 * created on 2020/11/13
 **/
public interface CaptchaRepository<T> {

    /**
     * Load captcha base on context
     *
     * @param context context
     * @return captcha
     */
    String load(T context);

    /**
     * Save captcha base on context
     *
     * @param context context
     * @param captcha captcha
     */
    void save(T context, String captcha);
}
